/*
 * Created by IntelliJ IDEA.
 * User: amrk
 * Date: 15/03/2004
 * Time: 23:32:35
 */
package com.talios.jira.feeds;

import com.talios.jira.browser.signals.JiraServerDetails;

public class SavedFilterFeedBuilder extends AbstractFeedBuilder {

    private String filterName;
    private String filterId;

    public SavedFilterFeedBuilder(JiraServerDetails server, String filterName, String filterId) {
        this.filterName = filterName;
        this.filterId = filterId;
        setServers(new JiraServerDetails[]{server});
    }

    public String buildRssFeedUrl(boolean includeUserDetails) {
        StringBuffer buf = getBaseBuffer(includeUserDetails);

        buf.append("&requestId=");
        buf.append(filterId);

        return buf.toString();
    }

    public String getSearchFor() {
        return filterName;
    }
}